package cn.samler.project.guestbook.mapper;

import cn.samler.project.guestbook.entity.Message;
import cn.samler.project.guestbook.model.response.MessageDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {
    int insert(Message message);
    Message findById(int id);

    int count();

    List<MessageDetail> listByPage(@Param("start") int start, @Param("end") int end);

    int update(Message message);

    int delete(int id);
}
